selenium exception handling python

43

selenium exception handling python -

from selenium.common.exceptions import NoSuchElementException

try:
    driver.find_element_by_xpath("//span")
except NoSuchElementException:

Comments

Submit
0 Comments